<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style>
			*{
				padding: 0;
				margin: 0;
			}
		</style>
		<script src='jquery-3.4.1.js'></script>
		<script src='jquery.easing.1.3.js'></script>
		<script>
			$(function(){
				$("#btn").click(function(){
					//removeAttr可以删除任何属性，本质上是删除属性节点
					//$("#title").removeAttr('hd');
					//removeProp是将属性的值删掉]
					alert($("#title").prop('class'));
					$("#title").removeProp('class');
					alert($("#title").prop('class'));
				})
			})
		</script>
	</head>
	<body>
		<input type="button" value='按钮' id='btn' />
		<h1 id='title' class='biaoti' hd='houdun'>后盾人  人人做后盾</h1>
	</body>
</html>
